package com.atguigu.ggkt.vod.mapper;

import com.atguigu.ggkt.model.vod.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 课程视频 Mapper 接口
 * </p>
 *
 * @author atguigu
 * @since 2022-04-22
 */
public interface VideoMapper extends BaseMapper<Video> {

    @Select("select min(id) from vod_video v where v.course_id = #{courseId}")
    public long selectMinVideoId(@Param("courseId") long courseId);
}
